<%@ page language="java" contentType="text/html; charset=utf-8" import="java.util.*,java.text.SimpleDateFormat,com.javabean.*,com.model.*;"
    pageEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会议室信息</title>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css" type="text/css" media="all" />


<script language="JavaScript" type="text/javascript">
function tishi()
{
  var a=confirm('数据库中保存有该人员基本信息，您可以修改或保留该信息。');
  if(a!=true)return false;
  window.open("冲突页.htm","","depended=0,alwaysRaised=1,width=800,height=400,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}

function check()
{
document.getElementById("aa").style.display="";
}

</script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body class="ContentBody">
<%
String sReserveID=request.getParameter("ReserveID");
int ReserveID=Integer.parseInt(sReserveID);
MeetingService ms=new MeetingService();
MeetingRoom room=ms.findRoomsByReserveID(ReserveID);
String roomID="B2-617";
String state="未预约";
String AttendNumber="20人以下";
String Occupytime="上午8:30-10:30";

if(room.getOccupyTime()==2){
	Occupytime="上午10:30-12:00";
}else if(room.getOccupyTime()==3){
	Occupytime="下午14:30-16:00";
}else if(room.getOccupyTime()==4){
	Occupytime="上午16:30-18:00";
};
if(room.getRoomID()==2){
	  roomID="B2-708";
}else if(room.getRoomID()==3){
	  roomID="B2-810";
}else if(room.getRoomID()==3){
	  roomID="B2-811";
};
if(room.getState()==1){
	  state="未预约";
}else if(room.getState()==2){
	  state="已预约";
}else if(room.getState()==3){
	  state="同意预约";
}else if(room.getState()==4){
	  state="预约失败";
}
if(room.getAttenderNumber()==2){
	AttendNumber="20-30人";
}else if(room.getAttenderNumber()==3){
	AttendNumber="30-40人";
};

%>
  <form action="" method="post" enctype="multipart/form-data" name="form" target="sypost" >
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >会议室信息</th>
  </tr>
  <tr>
    <td class="CPanel">
		
		<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		<tr><td align="left">
			

		</td></tr>
				<tr>
			<td width="100%">
				<fieldset style="height:100%;">
				<legend>会议室信息</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					 
					  <tr>
					    <td nowrap align="right" width="15%">时间:</td>
					    <td width="35%"><input name='time' type="text" class="text" style="width:120px" value="<%=room.getReserveDate() %>" readonly/>
					    —&nbsp;<input name='second' class="text" type="text" style="width:120px;" readonly value="<%=Occupytime%>"/></td>
					    <td width="16%" align="right" nowrap="nowrap">会议室:</td>
					    <td width="34%"><input class="text" name='datevalue20' style="width:154px" value="<%=roomID %>" readonly/></td>
					  </tr>
					    
					    
					  <tr>
					    <td nowrap="nowrap" align="right">借用部门:</td>
					    <td><input class="text" name='datevalue21' style="width:154px" value="<%=room.getDepartment() %>" readonly/></td>
					    <td align="right">借用人:</td>
					    <td><input class="text" name='datevalue22' style="width:154px" value="<%=room.getReserverName() %>" readonly/></td>
					  </tr>
                      
                      <tr>
					    <td nowrap="nowrap" align="right">参会人数:</td>
					    <td><input class="text" name='datevalue23' style="width:154px" value="<%=AttendNumber %>" readonly/></td>
					    <td align="right">联系方式:</td>
					    <td><input class="text" name='datevalue24' style="width:154px" value="<%=room.getConnectMeans() %>" readonly/></td>
					  </tr>
					 
					  <tr>
					    <td align="right">备注:</td>
					    <td colspan="3"><textarea name="textarea" cols="100" rows="8" readonly><%=room.getDescription() %> </textarea></td>
					  </tr>
					  </table>
			  <br />
				</fieldset></td>
		</tr>
		</table>
	 </td>
  </tr>
		<tr>
			<td colspan="2" align="center" height="50px">			
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></td>
		</tr>
		</table>
	 </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>
